﻿Imports System.Collections.Generic
Imports Pop.Api.Response
Imports Pop.Api.Util

Namespace Pop.Api.Request
    ''' <summary>
    ''' 1.10 (初级)查询店铺推荐商品列表接口
    ''' </summary>
    Public Class GetShopRecommendListRequest
        Inherits PopRequest(Of GetShopRecommendListResponse)

        ''' <summary>
        ''' 卖家QQ号
        ''' </summary>
        Public Property SellerUin As Nullable(Of Long)

        ''' <summary>
        ''' 默认False，为True表示当卖家没有推荐商品时系统自动推荐
        ''' </summary>
        Public Property NeedSysRecom As Nullable(Of Long)

#Region "Overrides"

        Protected Overrides Function GetApiName() As String
            Return "item.getShopRecommendList"
        End Function

        Protected Overrides Function GetParameters() As IEnumerable(Of KeyValuePair(Of String, String))
            Dim parameters As New PopDictionary
            parameters.Add("sellerUin", Me.SellerUin)
            parameters.Add("needSysRecom", Me.NeedSysRecom)
            Return parameters
        End Function

        Protected Overrides Sub Validate()
            Me.SellerUin.ValidateRequired("sellerUin")
        End Sub

#End Region

    End Class
End Namespace